package cobersky.skinUI.skins.scroller
{
	import cobersky.skinUI.components.HScrollerBar;
	import cobersky.skinUI.components.VScrollerBar;
	import cobersky.skinUI.skins.GlobalSkinManager;
	import cobersky.skinUI.skins.core.IScrollerSkin;
	import cobersky.skinUI.skins.graphics.Rect;
	
	import flash.display.DisplayObject;
	import flash.display.Sprite;
	import flash.geom.Rectangle;

	public class DefaultScrollerSkin implements IScrollerSkin
	{
		
		public function get defaultRectangle():Rectangle
		{
			return new Rectangle(0,0,200,300);
		}
		public function get HScrollBar():HScrollerBar
		{
			if(GlobalSkinManager.opend){
				return null;
			}else{
				const b:HScrollerBar=new HScrollerBar;
				b.create();
				return b;
			}
		}
		
		public function get VScrollBar():VScrollerBar
		{
			if(GlobalSkinManager.opend){
				return null;
			}else{
				const b:VScrollerBar=new VScrollerBar;
				b.create();
				return b;
			}
		}
		
		public function get backGround():DisplayObject
		{
			if(GlobalSkinManager.opend){
				return null;
			}else{
				const b:Rect=new Rect();
				b.width=200;
				b.height=300;
				b.alpha=0.5;
				return b;
			}
			return null;
		}
		
	}
}